luci-app-acl: unset read and write before acl set
authorFlorian Eckert <[email protected]>
Wed, 30 Jun 2021 12:58:14 +0000 (14:58 +0200)
committerJo-Philipp Wich <[email protected]>
Wed, 7 Jul 2021 15:18:03 +0000 (17:18 +0200)
commit5e1356fe51ef83020cf4f96562532dc3069b11db
treedc6f623304c6931f766975a2850a8511bd016de6
parenteafe171160a6ac4e059c9b7d524836ead83103e2
luci-app-acl: unset read and write before acl set

If the setting in the view is set to `denied`, only the read list option
is deleted. This is not correct. The write list option must also be
deleted. To ensure that the correct configuration is saved, the write
and read list options are always deleted beforehand and then rewritten.

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit f4e8fcb6b53780bd2d126b22a89c379cd7c071d7)
applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js